package per.chao.mqtt.domain.facade.impl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import per.chao.mqtt.domain.facade.IMessageSender;
import per.chao.mqtt.domain.vo.InternalMessage;

/**
 * Description:
 *
 * @author W.Chao
 * @date 2021/6/20 14:28
 **/
@Component("kafkaSender")
@Slf4j
public class KafkaSender implements IMessageSender {
	@Override
	public void send(String topic, String message) {
		log.info("send to kafka, topic: {}, message: {}", topic, message);
	}

	@Override
	public void send(InternalMessage internalMessage) {
		// do nothing
	}
}
